package com.mcxx.modules.miniSalvation.order.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.ExpireFamilyDetailWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.ExpireFamilyDetailEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class ExpireFamilyDetailWriteService {

    @Autowired
    private ExpireFamilyDetailWriteDao expireFamilyDetailWriteDao;



    public int insert(ExpireFamilyDetailEntity expireFamilyDetail) {
    	return expireFamilyDetailWriteDao.insert(expireFamilyDetail);
    }


    public int insertIgnoreNull(ExpireFamilyDetailEntity expireFamilyDetail) {
    	return expireFamilyDetailWriteDao.insertIgnoreNull(expireFamilyDetail);
    }


    public int update(ExpireFamilyDetailEntity expireFamilyDetail) {
    	return expireFamilyDetailWriteDao.update(expireFamilyDetail);
    }


    public int updateIgnoreNull(ExpireFamilyDetailEntity expireFamilyDetail) {
    	return expireFamilyDetailWriteDao.updateIgnoreNull(expireFamilyDetail);
    }


    public int delete(ExpireFamilyDetailEntity expireFamilyDetail) {
    	return expireFamilyDetailWriteDao.delete(expireFamilyDetail);
    }


    public void batchDelete(String[] selectedRowKeys) {
        expireFamilyDetailWriteDao.batchDelete(selectedRowKeys);
    }
}
